﻿namespace Forum.BaseController
{
    [ApiController]
    [ApiExplorerSettings(GroupName = nameof(ApiVersions.Job))]
    [Route("api/[controller]/[action]")]
    public class JobBaseController<TDefaultService> : ControllerBase where TDefaultService : class
    {
        protected readonly TDefaultService DefaultService;
        /// <summary>
        /// 日志
        /// </summary>
        protected readonly ILogger<JobBaseController<TDefaultService>> Log;
        /// <summary>
        /// 构造
        /// </summary>
        /// <param name="defaultService">默认服务</param>
        /// <param name="logger">默认服务</param>
        public JobBaseController(TDefaultService defaultService, ILogger<JobBaseController<TDefaultService>> logger)
        {
            DefaultService = defaultService;
            Log = logger;
        }
    }
}
